package nc.ui.so.m32.billui.list.headevent;

import nc.ui.pub.bill.BillListPanel;
import nc.ui.pubapp.uif2app.event.IAppEventHandler;
import nc.ui.pubapp.uif2app.event.list.ListHeadRowChangedEvent;
import nc.ui.so.m32.billui.pub.UptFindPriCondActionEnable;
import nc.ui.uif2.actions.StandAloneToftPanelActionContainer;

public class ListHeadRowChangedHandler implements IAppEventHandler<ListHeadRowChangedEvent> {
	private StandAloneToftPanelActionContainer actionsOfList;
	
	public ListHeadRowChangedHandler(StandAloneToftPanelActionContainer actionsOfList) {
		this.actionsOfList = actionsOfList;
	}
	
	@Override
	public void handleAppEvent(ListHeadRowChangedEvent e) {
		int rownum = e.getRow();
		
		BillListPanel billListPanel = e.getBillListPanel();
		
		UptFindPriCondActionEnable ef = new UptFindPriCondActionEnable();
		ef.uptListOfAction(rownum, billListPanel, actionsOfList);
	}
}
